package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.common.CommonResult;
import com.lanqiao.javaparkinglot.dao.DriverDao;
import com.lanqiao.javaparkinglot.entity.Driver;
import com.lanqiao.javaparkinglot.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverServiceImpl implements DriverService {
    @Autowired
    DriverDao driverDao;

    //查询
    @Override
    public List<Driver> findsj() {
        List<Driver> driverList= driverDao.findsj();
        return  driverList;
    }

    @Override
    public void addsj(Driver driver) {
        driverDao.addsj(driver);
    }

    @Override
    public void updatesj(Driver driver) {
        driverDao.updatesj(driver);
    }

    @Override
    public void deletesj(Long sj_eno) {
        driverDao.deletesj(sj_eno);

    }
}
